package lac.serviceuint.job.model;

import java.util.List;

import lac.model.core.cfg.BasicProperty;
import lac.model.core.cfg.CollectionProperty;
import lac.model.core.cfg.IdProperty;
import lac.model.core.cfg.ModelDescribe;
import lac.model.core.cfg.Type;

public class ServiceUnitJobModelDescribe extends ModelDescribe{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2378778445527927301L;
	
	
	public ServiceUnitJobModelDescribe() {
		this.setName("ServiceUnitJob");
		this.setTableName("pt_serviceunit_job");
		this.setIdProperty(new IdProperty());
		List<BasicProperty> basicProperties = this.getBasicProperties();
		basicProperties.add(new BasicProperty(Type.String, "name", "st_name", 50));
		basicProperties.add(new BasicProperty(Type.String, "describe", "st_describe", 100));
		basicProperties.add(new BasicProperty(Type.String, "serviceUnitName", "st_serviceunit_name", 100));
		basicProperties.add(new BasicProperty(Type.String, "methodName", "st_method_name", 100));
		basicProperties.add(new BasicProperty(Type.String, "cron", "st_cron", 30));
		basicProperties.add(new BasicProperty(Type.Boolean, "enable", "bo_enable"));
		
		List<CollectionProperty> collectionProperties = this.getCollectionProperties();
		collectionProperties.add(new CollectionProperty("params", "st_job_id", "ServiceUnitJobParam"));
	}
	
	
}
